package com.sgolub.commanndsonline.service.entity;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sgolub.commanndsonline.dao.entity.UserOrderDetailDAO;
import com.sgolub.commanndsonline.domain.entity.UserOrderDetail;

@Service
public class UserOrderDetailServiceImpl implements UserOrderDetailService {

	@Autowired
	private UserOrderDetailDAO dao;
	
	@Transactional
	public UserOrderDetail get(Integer id) {
		return dao.get(id);
	}

	@Transactional
	public List<UserOrderDetail> listDetailByOrderId(Integer orderId){
		return dao.listDetailByOrderId(orderId);
	}
	
}
